Optimal. Leaf size=46 \[ a \tan ^{-1}\left (\sqrt{c x-1} \sqrt{c x+1}\right )+\frac{b \sqrt{c x-1} \sqrt{c x+1}}{c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0612882, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.103, Rules used = {460, 92, 205} \[ a \tan ^{-1}\left (\sqrt{c x-1} \sqrt{c x+1}\right )+\frac{b \sqrt{c x-1} \sqrt{c x+1}}{c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 460
Rule 92
Rule 205
Rubi steps
\begin{align*} \int \frac{a+b x^2}{x \sqrt{-1+c x} \sqrt{1+c x}} \, dx &=\frac{b \sqrt{-1+c x} \sqrt{1+c x}}{c^2}+a \int \frac{1}{x \sqrt{-1+c x} \sqrt{1+c x}} \, dx\\ &=\frac{b \sqrt{-1+c x} \sqrt{1+c x}}{c^2}+(a c) \operatorname{Subst}\left (\int \frac{1}{c+c x^2} \, dx,x,\sqrt{-1+c x} \sqrt{1+c x}\right )\\ &=\frac{b \sqrt{-1+c x} \sqrt{1+c x}}{c^2}+a \tan ^{-1}\left (\sqrt{-1+c x} \sqrt{1+c x}\right )\\ \end{align*}
Mathematica [A] time = 0.0245972, size = 66, normalized size = 1.43 \[ \frac{a c^2 \sqrt{c^2 x^2-1} \tan ^{-1}\left (\sqrt{c^2 x^2-1}\right )+b \left (c^2 x^2-1\right )}{c^2 \sqrt{c x-1} \sqrt{c x+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.018, size = 62, normalized size = 1.4 \begin{align*}{\frac{1}{{c}^{2}} \left ( -\arctan \left ({\frac{1}{\sqrt{{c}^{2}{x}^{2}-1}}} \right ) a{c}^{2}+b\sqrt{{c}^{2}{x}^{2}-1} \right ) \sqrt{cx-1}\sqrt{cx+1}{\frac{1}{\sqrt{{c}^{2}{x}^{2}-1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.45888, size = 42, normalized size = 0.91 \begin{align*} -a \arcsin \left (\frac{1}{\sqrt{c^{2}}{\left | x \right |}}\right ) + \frac{\sqrt{c^{2} x^{2} - 1} b}{c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.49658, size = 122, normalized size = 2.65 \begin{align*} \frac{2 \, a c^{2} \arctan \left (-c x + \sqrt{c x + 1} \sqrt{c x - 1}\right ) + \sqrt{c x + 1} \sqrt{c x - 1} b}{c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 18.0023, size = 162, normalized size = 3.52 \begin{align*} - \frac{a{G_{6, 6}^{5, 3}\left (\begin{matrix} \frac{3}{4}, \frac{5}{4}, 1 & 1, 1, \frac{3}{2} \\\frac{1}{2}, \frac{3}{4}, 1, \frac{5}{4}, \frac{3}{2} & 0 \end{matrix} \middle |{\frac{1}{c^{2} x^{2}}} \right )}}{4 \pi ^{\frac{3}{2}}} + \frac{i a{G_{6, 6}^{2, 6}\left (\begin{matrix} 0, \frac{1}{4}, \frac{1}{2}, \frac{3}{4}, 1, 1 & \\\frac{1}{4}, \frac{3}{4} & 0, \frac{1}{2}, \frac{1}{2}, 0 \end{matrix} \middle |{\frac{e^{2 i \pi }}{c^{2} x^{2}}} \right )}}{4 \pi ^{\frac{3}{2}}} + \frac{b{G_{6, 6}^{6, 2}\left (\begin{matrix} - \frac{1}{4}, \frac{1}{4} & 0, 0, \frac{1}{2}, 1 \\- \frac{1}{2}, - \frac{1}{4}, 0, \frac{1}{4}, \frac{1}{2}, 0 & \end{matrix} \middle |{\frac{1}{c^{2} x^{2}}} \right )}}{4 \pi ^{\frac{3}{2}} c^{2}} + \frac{i b{G_{6, 6}^{2, 6}\left (\begin{matrix} -1, - \frac{3}{4}, - \frac{1}{2}, - \frac{1}{4}, 0, 1 & \\- \frac{3}{4}, - \frac{1}{4} & -1, - \frac{1}{2}, - \frac{1}{2}, 0 \end{matrix} \middle |{\frac{e^{2 i \pi }}{c^{2} x^{2}}} \right )}}{4 \pi ^{\frac{3}{2}} c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13846, size = 61, normalized size = 1.33 \begin{align*} -2 \, a \arctan \left (\frac{1}{2} \,{\left (\sqrt{c x + 1} - \sqrt{c x - 1}\right )}^{2}\right ) + \frac{\sqrt{c x + 1} \sqrt{c x - 1} b}{c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]